package com.token.sysflow.action;
import com.token.base.FuncUtil;
import com.token.sql.IntegrateSql;
import com.token.sysflow.impl.ReturnFlowImpl;

/**
 * 退回流程
 * @author chenjianxiong 2020/4/12
 */
public class ReturnFlowAction extends AbstractFlowAction {

    public void executeAction(FuncUtil f,IntegrateSql iSql) throws Exception{
        ReturnFlowImpl handler = new ReturnFlowImpl();
        handler.setStepId(f.getUrlQueryString("stepId",true,"环节Id"));
        handler.setFlowId(f.getUrlQueryString("flowId", true, "流程Id[flowId]"));

        //办理人，会签会审不用传selectApprovers
        String approvers = f.getUrlQueryString("selectApprovers",true,"退回办理人");
        handler.setSelectApprover(approvers.split(";"));

        this.start(f,iSql,handler);
    }
}
